<!DOCTYPE html>  
<html>  
  <head>  
    <title>Booleans</title>  
  </head>
  <body>  
    <script type="text/javascript">
       var isJavaFun = true;
       var isFishTasty = new Boolean(false);
       document.write(isJavaFun); // Outputs true
       document.write("<br>");
       document.write(isFishTasty); // Outputs false
       document.write("<hr>");
       
       var x = 10;
       var y = 9;
       document.write(x > y); // returns true, because 10 is higher than 9
       document.write("<br>");
       document.write(10 > 9); // returns true, because 10 is higher than 9
       document.write("<br>");
       document.write(x == 10); // returns true, because the value of x is equal to 10
       document.write("<br>");
       document.write(10 == 15); // returns false, because 10 is not equal to 15
       document.write("<br>");
    </script> 
  </body>  
</html>